package cn.hxzy.common.domain.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author wangboyu
 * @Description TODO
 * @Date 2024/6/26 16:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TaskManagerVo implements Serializable {

    private static final long serialVersionUID = -8837050748529583175L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学生编号")
    private Integer studentId;

    @ApiModelProperty("作业编号")
    private Integer taskId;

    @ApiModelProperty("提交时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;

    @ApiModelProperty("提交次数")
    private Integer submitCount;

    @ApiModelProperty("批复状态(0批复,1未批复)")
    private Integer approvalStatus;

    @ApiModelProperty("学生上传作业图片的路径")
    private String imageUrl;

    @ApiModelProperty("学生上传作业附件的路径")
    private String attachmentUrl;

    @ApiModelProperty("提交作业内容")
    private String taskTxt;

    @ApiModelProperty("批复教师的编号")
    private Integer teacherId;

    @ApiModelProperty("评分")
    private Double score;

    @ApiModelProperty("评语")
    private String comment;

    @ApiModelProperty("学生姓名")
    private String nickName;

    @ApiModelProperty("作业名称")
    private String taskName;

    @ApiModelProperty("作业描述")
    private String taskInfo;
    @ApiModelProperty("作业照片集合")
    private List<String> taskImgUrl;

}
